package com.eastfair.projectcore.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 字典表
 * </p>
 *
 * @author zjn
 * @since 2021-07-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "DictUpdateDTO", description = "字典表")
public class DictUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 字典类型
     */
    @ApiModelProperty(value = "字典类型")
    @Size(max = 64, message = "字典类型长度不能超过64")
    private String dictTypeCode;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @Size(max = 128, message = "名称长度不能超过128")
    private String name;
    /**
     * 编码
     */
    @ApiModelProperty(value = "编码")
    @Size(max = 64, message = "编码长度不能超过64")
    private String code;
    /**
     * 父节点
     */
    @ApiModelProperty(value = "父节点")
    @Size(max = 128, message = "父节点长度不能超过128")
    private String parentDictId;
    /**
     * 顺序
     */
    @ApiModelProperty(value = "顺序")
    private Integer sequence;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    @Size(max = 512, message = "描述长度不能超过512")
    private String description;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Boolean enabled;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Boolean deleted;
    @ApiModelProperty(value = "")
    @Size(max = 64, message = "长度不能超过64")
    private String enName;
}
